package com.yoda.youdianda.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yoda.youdianda.domain.SysConfig;
import com.yoda.youdianda.domain.SysDict;
import com.yoda.youdianda.mapper.DictMapper;
import com.yoda.youdianda.service.SysDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shawn
 * @date 2022年 11月 13日 9:44
 */
@Service
public class SysDictServiceImpl implements SysDictService {
    @Autowired
    private DictMapper dictMapper;

    @Override
    public List<SysDict> getAll() {
        LambdaQueryWrapper<SysDict> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SysDict::getDelFlag,0);
        return dictMapper.selectList(wrapper);
    }
}
